﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SampleCardPrint.aspx.cs"
    Inherits="PPAP.Web.Part.SampleCardPrint" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .td1
        {
            border-color: #2A48CE;
            border: 1px;
            border-style: solid;
            border-color: Gray;
            margin: 0;
            height: 26px;
        }
        .td2
        {
            border-color: #2A48CE;
            border: 1px;
            border-style: solid;
            border-color: Gray;
            margin: 0;
            border-top-width: 0;
            height: 26px;
        }
        .td3
        {
            border-color: #2A48CE;
            border: 1px;
            border-style: solid;
            border-color: Gray;
            margin: 0;
            border-top-width: 0;
            border-left-width: 0;
            height: 26px;
        }
        .td4
        {
            border-color: #2A48CE;
            border: 0;
            border-bottom-width: 1px;
            border-style: solid;
            border-color: Gray;
            height: 26px;
        }
        .td5
        {
            border-color: #2A48CE;
            border: 0;
            border-left-width: 1px;
            border-style: solid;
            border-color: Gray;
            text-align: center;
            height: 26px;
        }
        .td6
        {
            border-color: #2A48CE;
            border: 0;
            border-top-width: 1px;
            border-style: solid;
            border-color: Gray;
            height: 32px;
            height: 26px;
        }
        .td7
        {
            border-color: #2A48CE;
            border: 1px;
            border-style: solid;
            border-color: Gray;
            margin: 0;
            border-left-width: 0;
            height: 26px;
        }
        .td8
        {
            border-color: #2A48CE;
            border: 0;
            border-right-width: 1px;
            border-style: solid;
            border-color: Gray;
            height: 32px;
            height: 26px;
        }
        .td9
        {
            border-color: #2A48CE;
            border: 1px;
            border-style: solid;
            border-color: Gray;
            margin: 0;
            border-bottom-width: 0;
            border-top-width: 0;
            height: 26px;
        }
    </style>
    <!-- 插入打印控件 -->
    <%--<object id="jatoolsPrinter" codebase="jatoolsP.cab#version=1,1,6,1" classid="CLSID:B43D3361-D975-4BE2-87FE-057188254255"
        viewastext>
    </object>--%>
    <%--<OBJECT ID="jatoolsPrinter" CLASSID="CLSID:B43D3361-D075-4BE2-87FE-057188254255"  
codebase="jatoolsPrinter.cab#version=5,7,0,0"></OBJECT>--%>

    <script language="javascript">
        function doPrint(how) {

            if (typeof (jatoolsPrinter.page_div_prefix) == 'undefined') {
                alert("请按页顶上的黄色提示下载ActiveX控件.如果没有提示请按以下步骤设置ie.\n 工具-> internet 选项->安全->自定义级别,设置 ‘下载未签名的 ActiveX ’为'启用'状态")
                return;
            }
            //打印文档对象
            var myreport = {
                documents: document,    // 打印页面(div)们在本文档中
                copyrights: '杰创软件拥有版权 www.jatools.com'         // 版权声明必须
            };

            // 调用打印方法
            if (how == 'Preview...')
                jatoolsPrinter.printPreview(myreport); 	// 打印预览

            else if (how == 'Print...')
                jatoolsPrinter.print(myreport, true); 		// 打印前弹出打印设置对话框

            else
                jatoolsPrinter.print(myreport, false);       // 不弹出对话框打印
        }
    </script>
    <style media="print">
        .Noprint
        {
            display: none;
        }
        UNKNOWN
        {
            page-break-after: always;
        }
    </style>
</head>
<body style="font-family: Arial, Helvetica, sans-serif;">
    <form id="form1" runat="server">
    <div class="Noprint">
    <table width="100%" align="center" width="780px">
            <tr>
                <td colspan="4" style="height: 30px; background-color: #FFFFCC">
                    <img src="../Images/newimg/tishi.png" style="vertical-align: middle;" /> To Print this page, please click Print in File(F) menu.
                </td>
            </tr>
            </table>
    </div>
    <table cellspacing="0" cellpadding="0" width="100%" border="0" style="display:none;">
        <tr>
            <td align="right" width="100%" colspan="2">
                <input onclick="doPrint('Preview...')" type="button" value="Preview" class="button" />
                <input onclick="doPrint('Print...')" type="button" value="Print" class="button" />
            </td>
        </tr>
    </table>
    <div id="page1">
        <table width="650" align="center" cellspacing="0">
            <tr>
                <td colspan="3" align="center">
                    <img src="image/u76.jpg" style="height: 115px;" />
                    <br />
                </td>
            </tr>
            <tr>
                <td rowspan="6" style="font-weight: bold; width: 34%; font-size: larger; padding-left: 15px;"
                    align="center">
                    <asp:Label ID="SampleCardName" runat="server"></asp:Label>
                </td>
                <td class="td1" style="width: 33%;">
                    Sample card/version
                </td>
                <td class="td7">
                    &nbsp; SC-<asp:Label ID="lblSampleCard" runat="server" Text="Label"></asp:Label>
                    /<asp:Label ID="lblSampleVersion" runat="server" Text="Label"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="td2">
                    PPAR/version
                </td>
                <td class="td3">
                    &nbsp; PPAR-<asp:Label ID="lblPPAR" runat="server" Text="Label"></asp:Label>
                    /<asp:Label ID="lblPPARVersion" runat="server" Text="Label"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="td2">
                    Create date
                </td>
                <td class="td3">
                    &nbsp;
                    <asp:Label ID="lblDate0" runat="server" Text="Label"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="td2">
                  Planned end date
                </td>
                <td class="td3">
                    &nbsp;
                    <asp:Label ID="lblEndDate" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="td2">
                  Actual end date
                </td>
                <td class="td3">
                    &nbsp;
                    <asp:Label ID="Label2" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="td9" style="border-bottom-width: 1px;">
                    Status
                </td>
                <td class="td8" style="border-bottom-width: 1px;">
                    &nbsp;
                    <asp:Label ID="lblStatus" runat="server" Text="Label"></asp:Label>
                </td>
            </tr>
        </table>
        <table width="650" style="margin-top: 5px" align="center" cellspacing="0" >
            <tr>
                <td colspan="4" class="td1" style="font-weight: bold;">
                    Test items
                </td>
            </tr>
            <tr >
                <td colspan="4" class="td2">
                    &nbsp;<asp:Label ID="Label1" runat="server"></asp:Label>
                </td>
            </tr>
        </table>
        <table width="650" style="margin-top: 5px" align="center" cellspacing="0">
            <tr>
                <td colspan="4" class="td1" style="font-weight: bold;">
                    Part information
                </td>
            </tr>
            <tr>
                <td colspan="2" class="td2" width="50%">
                    Part name:<br />
                    <asp:Label ID="lblPartName" runat="server" Text="Label"></asp:Label>
                </td>
                <td colspan="2" class="td3">
                    BDNT revision no.:
                    <asp:Label ID="lblBDNTRevisionNo" runat="server" Text="Label"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="2" class="td2">
                    Part No.:<asp:Label ID="lblPartNo" runat="server" 
                        Text="Label"></asp:Label>
                </td>
                <td colspan="2" class="td3">
                    <asp:Label ID="BDNTRevisionStatus" runat="server" Visible="False"></asp:Label>
                </td>
            </tr>
            <tr style="display: none;">
                <td colspan="2" class="td2">
                    SW-version:
                    <asp:Label ID="lblSWVersion" runat="server" Text="Label"></asp:Label>
                </td>
                <td colspan="2" class="td3">
                    HW-version:<asp:Label ID="lblHWVersion" runat="server" Text="Label"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="td2" colspan="2">
                    Color:<asp:Label ID="lblColor" runat="server"></asp:Label>
                </td>
                <td class="td3" colspan="2">Q/E level:<asp:Label ID="lblQLevel" runat="server" 
                        Text="Label"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="4" class="td2">
                    Sampling reason:
                    <br />
                    <asp:Label ID="SamplingReason" runat="server" Text="Label"></asp:Label>
                    <br />
                </td>
            </tr>
            <tr>
                <td colspan="4" class="td2">
                    Modification scope:
                    <br />
                    <asp:Label ID="lblModificationScope" runat="server" Text="Label"></asp:Label>
                    <br />
                </td>
            </tr>
        </table>
        <table width="650" style="margin-top: 5px" align="center" cellspacing="0">
            <tr>
                <td colspan="4" class="td1" style="font-weight: bold;">
                    Supplier information
                </td>
            </tr>
            <tr>
                <td colspan="2" class="td2" width="50%">
                    Supplier name:<br />
                    <asp:Label ID="lblSupplierName" runat="server" Text="Label"></asp:Label>
                </td>
                <td colspan="2" class="td3">
                    Supplier Code:<asp:Label ID="SupplierNo" runat="server" Text="Label"></asp:Label>
                </td>
            </tr>
            <tr style="display: none;">
                <td colspan="2" class="td2">
                    Contact person:<asp:Label ID="lblContactPerson" runat="server" Text="Label"></asp:Label>
                </td>
                <td colspan="2" class="td3">
                    Contact person information:<asp:Label ID="lblPersonInfo" runat="server" Text="Label"></asp:Label>
                </td>
            </tr>
        </table>
        <table width="650" style="margin-top: 5px" align="center" cellspacing="0">
            <tr>
                <td colspan="2" class="td2" style="font-weight: bold; border-top-width: 1px;">
                    Quality <span id="GridView1__ctl11_Label4">mangement</span>
                </td>
                <td colspan="2" class="td3" style="font-weight: bold; border-top-width: 1px;">
                    Department:<asp:Label ID="lblDepartment" runat="server" Text="Label"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="2" class="td2">
                    Name:
                    <asp:Label ID="lblQualityMaganment" runat="server" Text="Label"></asp:Label>
                </td>
                <td colspan="2" class="td3">
                    Name:<asp:Label ID="lblTeName" runat="server" Text="Label"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="2" class="td2">
                    Phone:
                    <asp:Label ID="lblPhone" runat="server" Text="Label"></asp:Label>
                </td>
                <td colspan="2" class="td3">
                    Phone:<asp:Label ID="lblTelePhone" runat="server" Text="Label"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="4" class="td2">
                    Date:
                    <asp:Label ID="lblDate" runat="server" Text="Label"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="4" class="td2">
                    Internal remarks:
                    <asp:Label ID="lblRemarks" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="td2" style="width: 25%; height: 150px; vertical-align: text-top;">
                    <asp:CheckBox ID="cbG" runat="server" Enabled="False" />
                    <font style="font-size: small;">Release(green)<br />
                    </font>
                    <br />
                    <br />
                    Definition green:
                    <br />
                    ·100%acceptable for customer
                    <br />
                    ·Achieves 100% compliance creteria defined by department conducting the assessment
                </td>
                <td class="td3" style="width: 25%; vertical-align: text-top;">
                    <asp:CheckBox ID="cbY" runat="server" Enabled="False" />
                    <font style="font-size: small;">Conditional Release(yellow)
                        <br />
                    </font>
                    <br />
                    Definition yellow:
                    <br />
                    ·Suitable for customer<br />
                    ·May remain in vehicle ·Spec.non-conformity is present only on uncritical specifications<br />
                    ·Resampling requried
                </td>
                <td class="td3" style="width: 25%; vertical-align: text-top;">
                    <asp:CheckBox ID="cbR" runat="server" Enabled="False" />
                    <font style="font-size: small;">Rejected(red)
                        <br />
                    </font>
                    <br />
                    <br />
                    Definition Red:
                    <br />
                    ·not suitable for customer
                    <br />
                    ·must not remain in vehicle
                    <br />
                    ·re-sampling required without delay
                </td>
                <td class="td3" style="width: 25%; vertical-align: text-top;">
                    <asp:CheckBox ID="cbT" runat="server" Enabled="False" /><font style="font-size: small;">Invaild
                        part </font>
                </td>
            </tr>
            <tr>
                <td colspan="4" class="td2">
                    Deviation from specification:
                    <asp:Label ID="lblDeviation" runat="server"></asp:Label>
                    <br />
                    <br />
                    <br />
                    <br />
                </td>
            </tr>
        </table>
        <table width="650" align="center" style="margin-top: 5px;">
            <tr>
                <td align="center">
                    This&nbsp; document&nbsp; was generated electronically and is valid without signature.
                </td>
            </tr>
        </table>
    </div>
    </form>
     <script language="javascript">
         window.print();
</script>
</body>
</html>
